<?php
class AtomController extends CController {

	public function getActionNames() {
		return array();
	}

	private function createWidgets() {
		if (!isset(Yii::app()->widgets))
			return;
		$widgetList = Yii::app()->widgets;
		foreach($widgetList as $w) {
			$this->widget("application.widgets.$w.$w");
		}
	}

	public function createWidgetPanel($id='sidebar', $html_tag='div', $css_class=null)
	{
		echo "<$html_tag ".
		"id=\"$id\"".($css_class!==null?" class=\"$css_class\"":"").">\n";
		$this->createWidgets();
		echo "</$html_tag>\n";
	}

	public function filters() {
		return array(
			array('application.filters.RbacExFilter'),
		);
	}

}
?>